package basic3;


public class J03_31 {

	public static void main(String[] args) {
		
		int a =2, b=2, c=7;
		double x=2.0, y=3.14, z=-7.0;
		boolean m=true, n=false;
		
		System.out.println((a>7 )||(b<6));
		System.out.println((a>7)&&(b<6));
		System.out.println((x > 2.5)||(a==2)&&(c<7));
		System.out.println((x == 2.0) && (c == 7));
		System.out.println(m==((y==y/2)&&(a==b)));
//		System.out.println((m==0)||(z==7.0)); 논리타입의 boolean은 숫자비교는 불가.
		System.out.println(m&&n&&(a==b));
		System.out.println(c==-z);
//		System.out.println(m==a); 위의 에러 문과 같음
		System.out.println((b/2==x)&&(2*a==b));
		System.out.println((int)(b/2)==(double)x);
		System.out.println((x+y+z+1.86 != 0));
		System.out.println(a==x++);
//		System.out.println((int)m == 0);
//		System.out.println((x>z)||(m<n));  논리타입의 변수는 비교대상이 될 수 없음.
		
		
	}

}
